package com.auguigu;

import com.auguigu.controller.AppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class NacosApplicationMain {

    public static void main(String[] args) {
        ApplicationContext app = new AnnotationConfigApplicationContext();
        ((AnnotationConfigApplicationContext) app).register(AppConfig.class);
        ((AnnotationConfigApplicationContext) app).refresh();
        ((AnnotationConfigApplicationContext) app).start();
    }
}
